package cn.com.yusys.yusp.mobile.web.rest;

import cn.com.yusys.yusp.commons.mapper.QueryModel;
import cn.com.yusys.yusp.commons.web.rest.dto.ResultDto;
import cn.com.yusys.yusp.mobile.service.WcrmCustRemindInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 营销活动表(WcrmMarketActivity)表控制层
 *
 * @author pig4cloud
 * @since 2021-06-24 10:24:09
 */
@RestController
@RequestMapping("/mobile")
public class WcrmCustRemindInfoResource {
    /**
     * 服务对象
     */
    @Resource
    private WcrmCustRemindInfoService wcrmCustRemindInfoService;

    /**
     * 通过userId查询
     *
     * @param
     * @return
     */
    @GetMapping("/wcrmCustRemindInfo")
    public ResultDto<Object> select(QueryModel queryModel) {
        return new ResultDto<>(wcrmCustRemindInfoService.queryByUserId(queryModel));
    }

    /**
     * 通过userId查询
     *
     * @param
     * @return
     */
    @PostMapping("/cancelConcernCust")
    public ResultDto<Object> cancelConcernCust(@RequestBody Map map) {
        return new ResultDto<>(1);
    }
}